import { RouterType } from "../types";
import { WapHomeO, Contact, LikeO, PlayCircleO } from "@react-vant/icons";
import Login from "../page/Login";
import Sigin from "../page/Sigin";
import Home from "../page/Home";
import AlPlus from "../page/AIPlus";

import CommonDrugs from "../page/CommonDrugs";
import CommonSymptoms from "../page/CommonSymptoms";
import HealthAssessment from "../page/HealthAssessment";
import SprngPrevention from "../page/SpringPrevention";
import Astragalusmembranaceussoakedinwatertodrink from "../page/Astragalusmembranaceussoakedinwatertodrink";
import Scoliosis from "../page/Scoliosis";
import Add from "../page/Add";
import CheckTheCondition from "../page/CheckTheCondition";

import HomeC from "../page/Home/Home";
import My from "../page/Home/My";
import Voio from "../page/Home/Voio";

import Avatar from '../page/Avatar'
import SearchC from "../page/Search";

import Currentconsultation from '../page/Currentconsultation'
import Historicalconsultation from '../page/Historicalconsultation'

import Myprofile from '../page/Myprofile'
import Mywallet from '../page/Mywallet'
import Mytask from '../page/Mytask'
import Devicemanagement from '../page/Devicemanagement'
import Screenbrightness from '../page/Screenbrightness'

import Changepassword from '../page/Changepassword'
import News from '../page/News'

const Routers: RouterType[] = [
  {
    path: "/",
    element: <Login />,
  },
  {
    path: "/login",
    element: <Login />,
    meate: "登录",
  },
  {
    path: "/sigin",
    element: <Sigin />,
    meate: "注册",
  },
  {
    path: "/home",
    element: <Home />,
    meate: "主页",
    children: [
      {
        path: "/home/home",
        element: <HomeC />,
        meate: "首页",
        icon: (
          <WapHomeO
            onPointerEnterCapture={undefined}
            onPointerLeaveCapture={undefined}
          />
        ),
      },
      {
        path: "/home/my",
        element: <My />,
        meate: "个人中心",
        icon: (
          <LikeO
            onPointerEnterCapture={undefined}
            onPointerLeaveCapture={undefined}
          />
        ),
      },
      {
        path: "/home/voio",
        element: <Voio />,
        meate: "视频",
        icon: (
          <PlayCircleO
            onPointerEnterCapture={undefined}
            onPointerLeaveCapture={undefined}
          />
        ),
      },
    ],
  },
  {
    path: "/aiplus",
    element: <AlPlus />,
    meate: "人工智能",
  },
  {
    path: "/commondrugs",
    element: <CommonDrugs />,
    meate: "常用药物",
  },
  {
    path: "/commonsymptoms",
    element: <CommonSymptoms />,
    meate: "常见病症",
  },
  {
    path: "/healthassessment",
    element: <HealthAssessment />,
    meate: "健康测评",
  },
  {
    path: "/sprngprevention",
    element: <SprngPrevention />,
    meate: "春季预防",
  },
  {
    path: "/astragalusmembranaceussoakedinwatertodrink",
    element: <Astragalusmembranaceussoakedinwatertodrink />,
    meate: "黄芪泡水喝",
  },
  {
    path: "/scoliosis",
    element: <Scoliosis />,
    meate: "脊柱侧弯",
  },
  {
    path: "/add",
    element: <Add />,
    meate: "添加",
  },
  {
    path: "/checkthecondition/:word",
    element: <CheckTheCondition />,
    meate: "查看病情",
  },
  {
    path: "/search",
    element: <SearchC />,
    meate: "搜索",
  },
  {
    path:"/avatar",
    element:<Avatar/>,
    meate:"头像"
  },
  {
    path:"/currentconsultation",
    element:<Currentconsultation/>,
    meate:"当前问诊"
  },
  {
    path:"/historicalconsultation",
    element:<Historicalconsultation/>,
    meate:"历史问诊"
  },
  {
    path:"/myprofile",
    element:<Myprofile/>,
    meate:"我的档案"
  },
  {
    path:"/mywallet",
    element:<Mywallet/>,
    meate:"我的钱包"
  },
  {
    path:"/mytask",
    element:<Mytask/>,
    meate:"我的任务"
  },{
    path:"/devicemanagement",
    element:<Devicemanagement/>,
    meate:"设备管理"
  },{
    path:"/screenbrightness",
    element:<Screenbrightness/>,
    meate:"屏幕亮度"
  },{
    path:"/changepassword",
    element:<Changepassword/>,
    meate:"修改密码"
  },{
    path:'/news',
    element:<News/>,
    meate:"新消息"
  }
];

export default Routers;
